home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWODUtil / Sources / FWRPCnst.cpp < prev    next >
Encoding:
Text File  |  1995-11-08  |  1.5 KB  |  44 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWRPCnst.cpp
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWOS.hpp"
  11.  
  12. #ifndef FWRECT_H
  13. #include "FWRect.h"
  14. #endif
  15.  
  16. //========================================================================================
  17. //    Runtime Informations
  18. //========================================================================================
  19.  
  20. #if FW_LIB_EXPORT_PRAGMAS
  21. #pragma lib_export on
  22. #endif
  23.  
  24. #ifdef FW_BUILD_MAC    
  25. #pragma segment FWODUtil_Const
  26. #endif
  27.  
  28. //========================================================================================
  29. // Global Rect and Point
  30. //========================================================================================
  31.  
  32. const FW_CRect        FW_kZeroRect = FW_CRect();        // Default constructor initilializes to 0
  33. const FW_CPoint        FW_kZeroPoint = FW_CPoint();
  34.  
  35. //========================================================================================
  36. // Global fixed point numbersx
  37. //========================================================================================
  38.  
  39. const FW_CFixed FW_kFixed0        = FW_IntToFixed(0);
  40. const FW_CFixed FW_kFixedPos1    = FW_IntToFixed(1);
  41. const FW_CFixed FW_kFixedNeg1    = FW_IntToFixed(-1);
  42. const FW_CFixed FW_kFixed72        = FW_IntToFixed(72);
  43. const FW_CFixed FW_kFixedPI        = FW_DoubleToFixed(3.1415926536);
  44.